import Vue from 'vue'
import VueRouter from 'vue-router'

const Wzzs = () => import(/* webpackChunkName: "home" */ '../views/Home/wangzhezhushou')
const Video = () => import(/* webpackChunkName: "home" */ '../views/Home/video')
const Content = () => import(/* webpackChunkName: "wh" */ './../views/content')
const Home = () => import(/* webpackChunkName: "home" */ '../views/Home')
const Match = () => import(/* webpackChunkName: "yr" */ './../views/Match')
const Baitai = () => import(/* webpackChunkName: "mx" */ '../views/baitaiwangzhe/index.vue')
const Gamedata = () => import(/* webpackChunkName: "wp" */ '../views/Gamedata')
const Item = () => import(/* webpackChunkName: "wp" */ '../views/Item')
const Summoner = () => import(/* webpackChunkName: "wp" */ '../views/Summoner')
const Skin = () => import(/* webpackChunkName: "wp" */ '../views/Skin')

// import Wzzs from '../views/Home/wangzhezhushou'
// import Video from '../views/Home/video'
// import Content from './../views/content'
// import Home from '../views/Home'
// import Match from './../views/Match'
// import Baitai from '../views/baitaiwangzhe/index.vue'
// import Gamedata from '../views/Gamedata'
// import Item from '../views/Item'
// import Summoner from '../views/Summoner'
// import Skin from '../views/Skin'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home/wzzs',
    component: Wzzs
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/content',
    component: Content
  },
  {
    path: '/match',
    component: Match
  },
  {
    path: '/baitai',
    component: Baitai
  },
  {
    path: '/home/video',
    component: Video
  },
  {
    path: '/gamedata',
    component: Gamedata
  },
  {
    path: '/item',
    component: Item
  },
  {
    path: '/summoner',
    component: Summoner

  },
  {
    path: '/home/video/:id',
    component: Video
  },
  {
    path: '/skin/:id',
    component: Skin
  }
]

const router = new VueRouter({
  routes
})

export default router
